package com.brightworks.scripthelper.constants
{
    import com.brightworks.util.Utils_DataConversionComparison;

    public class LanguageCodeConstants
    {
        public static const ISO_639_3_CODE_ENGLISH:String = "eng";
        public static const ISO_639_3_CODE_CHINESE_MANDARIN:String = "cmn";
        public static const languageCodeList:Array = [
            ISO_639_3_CODE_CHINESE_MANDARIN,
            ISO_639_3_CODE_ENGLISH]

        public function LanguageCodeConstants()
        {
        }

        public static function getLanguageCodeListString():String
        {
            return Utils_DataConversionComparison.convertArrayToDelimitedString(languageCodeList, ", ");
        }

        public static function isStringLanguageCode(s:String):Boolean
        {
            return (languageCodeList.indexOf(s) > -1);
        }
    }
}

